projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35caaf7
)
Limit style_format to MAX_ALLOCA
author
Paul Eggert
<eggert@cs.ucla.edu>
Thu, 22 Jun 2017 00:26:46 +0000
(17:26 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Thu, 22 Jun 2017 00:27:58 +0000
(17:27 -0700)
* src/editfns.c (styled_format): Subtract initial buffer size
from sa_avail, since it is nontrivial.
src/editfns.c
patch
|
blob
|
history
diff --git
a/src/editfns.c
b/src/editfns.c
index f0c4593742d6a48aed4178e066a1608c8cca975b..da99c055b544695696d64329e3ac7fd0050e7ea8 100644
(file)
--- a/
src/editfns.c
+++ b/
src/editfns.c
@@
-4179,6
+4179,7
@@
styled_format (ptrdiff_t nargs, Lisp_Object *args, bool message)
bool maybe_combine_byte;
bool arg_intervals = false;
USE_SAFE_ALLOCA;
+ sa_avail -= sizeof initial_buffer;
/* Information recorded for each format spec. */
struct info